import http from '../index';

export const getAll = (data) => http({
    url: '/api/auctions/pmsbh?' + data,
    method: 'get'
})

export const stateChange = (data) => http({
    url: '/api/auctions',
    method: 'put',
    data
})

export const getLot = (data) => http({
    url: '/api/auctions/pmsAll?pmhbh='+ data,
    method: 'get',
})

export const cp = (data) => http({
    url: '/api/lots/updatePmztCp?bdbh='+ data,
    method: 'put',
})

export const hfcp = (data) => http({
    url: '/api/lots/updatePmztHfcp?bdbh='+ data,
    method: 'put',
})

export const begin = (data) => http({
    url: '/api/jmzts/bdBegin?bdbh='+ data,
    method: 'put',
})

export const updJjfd = (data) => http({
    url: '/api/jmzts/updJjfd?'+ data,
    method: 'post',
})

export const back = (data) => http({
    url: '/api/jmzts/back?bdbh='+ data,
    method: 'post',
})

export const cj = (data) => http({
    url: '/api/jmzts/bid?'+ data,
    method: 'post',
})

export const bdSuccess = (data) => http({
    url: '/api/jmzts/bdSuccess?bdbh='+ data,
    method: 'put',
})

export const bdFailure = (data) => http({
    url: '/api/jmzts/bdFailure?bdbh='+ data,
    method: 'put',
})

export const record = (data) => http({
    url: '/api/jmzts/record?bdbh='+ data,
    method: 'get',
})

export const startTime = (data) => http({
    url: '/api/jmzts/startTime?' + data,
    method: 'post',
})

export const stopTime = (data) => http({
    url: '/api/jmzts/stopTime?pmhbh=' + data,
    method: 'post',
})

export const continueTime = (data) => http({
    url: '/api/jmzts/continueTime?pmhbh=' + data,
    method: 'post',
})

export const resetTime = (data) => http({
    url: '/api/jmzts/resetTime?index=' + data,
    method: 'post',
})

export const deleteTime = (data) => http({
    url: '/api/jmzts/deleteTimer?pmhbh=' + data,
    method: 'post',
})

export const getTime = (data) => http({
    url: '/api/jmzts/getTime?pmhbh=' + data,
    method: 'post',
})